package dao;

import com.xugou.dao.ClientDao;
import com.xugou.dao.DeptDao;
import com.xugou.pojo.Client;
import com.xugou.pojo.Dept;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

/**
 * @author xugou
 * @date 2022/6/13  16:11
 */
public class DaoTest2 {
    @Test
    public void clientDao() {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        ClientDao clientDao = context.getBean("clientDao", ClientDao.class);
        int i = clientDao.deleteClientById(5);
        System.out.println(i);

    }
}
